<!DOCTYPE html>
<html><head>
	    <meta charset="utf-8">
    <title>web813</title>

    <meta name="description" content="Dashboard">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--Basic Styles-->
    <link href="__STATIC__/admin/style/bootstrap.css" rel="stylesheet">
    <link href="__STATIC__/admin/style/font-awesome.css" rel="stylesheet">
    <link href="__STATIC__/admin/style/weather-icons.css" rel="stylesheet">

    <!--Beyond styles-->
    <link id="beyond-link" href="__STATIC__/admin/style/beyond.css" rel="stylesheet" type="text/css">
    <link href="__STATIC__/admin/style/demo.css" rel="stylesheet">
    <link href="__STATIC__/admin/style/typicons.css" rel="stylesheet">
    <link href="__STATIC__/admin/style/animate.css" rel="stylesheet">
    
</head>
<body>
	<!-- 头部 -->
    {include file="common/head"}

	<!-- /头部 -->
	
	<div class="main-container container-fluid">
		<div class="page-container">
            {include file="common/left"}
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                                        <li>
                        <a href="{:url('index/index')}">系统设置</a>
                    </li>
                                        <li>
                        <a href="#">配置列表</a>
                    </li>

                                        </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <form class="form-horizontal" role="form" action="" method="post" enctype="multipart/form-data">
         <div class="widget-main ">
            <div class="tabbable">
                <ul class="nav nav-tabs tabs-flat" id="myTab11">
                    <li class="active">
                        <a data-toggle="tab" href="#home11">
                            基本信息设置
                        </a>
                    </li>

                    <li class="">
                        <a data-toggle="tab" href="#profile11">
                           联系方式
                        </a>
                    </li>
                    <li class="">
                        <a data-toggle="tab" href="#profile12">
                            SEO设置
                        </a>
                    </li>
                </ul>
                <div class="tab-content tabs-flat">
                    <div id="home11" class="tab-pane active">
                     <?php foreach($confRes as $k=>$v):?>
                        <?php if($v['cf_type']==1):?>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right"><?php echo $v['cname']?></label>
                            <div class="col-sm-6">

                                <?php if($v['dt_type']==1):?><!-- 单行文本-->
                                <input class="form-control"  placeholder="" name="<?php echo $v['ename'];?>" required="" value="<?php echo $v['value'];?>" type="text">
                                <?php endif;?>

                                <?php if($v['dt_type']==2):
                                $arr=explode(',',$v['values']);
                                foreach($arr as $k1=>$v1):
                                ?><!-- 单选按钮-->
                                <div class="radio" style="float: left;padding-left: 10px">
                                  <label>
                                    <input type="radio" {if condition="$v1 eq $v['value']"} checked="checked" {/if} name="<?php echo $v['ename'];?>" value="<?php echo $v1;?>" class="colored-blue" >
                                    <span class="text"> <?php echo $v1;?></span>
                                  </label>
                                </div>
                                <?php endforeach; endif;?>

                                <?php if($v['dt_type']==3):
                                $arr=explode(',',$v['values']);
                                $valueArr=explode(',',$v['value']);
                                   foreach($arr as $k3=>$v3):
                                ?><!-- 复选框-->
                                <div class="checkbox"  style="float: left;padding-left: 10px">
                                    <label>
                                        <input name="<?php echo $v['ename'];?>[]" <?php if(in_array($v3,$valueArr)){echo 'checked="checked"';}?> type="checkbox" value="<?php echo $v3;?>" class="colored-blue" >
                                        <span class="text"><?php echo $v3;?></span>
                                    </label>
                                </div>
                                <?php endforeach; endif;?>
                                <?php if($v['dt_type']==4):?><!-- 下拉菜单-->
                                <select name="<?php echo $v['ename'];?>">
                                    <option value="">请选择</option>
                                    <?php $arr=explode(',',$v['values']);
                                    foreach($arr as $k4=>$v4):
                                    ?>
                                    <option {if condition="$v4 eq $v['value']"} selected="selected" {/if} value="<?php echo $v4;?>"><?php echo $v4;?></option>
                                    <?php endforeach;?>
                                </select>
                                <?php endif;?>

                                <?php if($v['dt_type']==5):?><!-- 文本域-->

                                <textarea name="<?php echo $v['ename'];?>" class="form-control"><?php echo $v['value'];?></textarea>
                                <?php endif;?>

                                <?php if($v['dt_type']==6):?><!-- 附件-->

                                <input name="<?php echo $v['ename'];?>" style="float: left;" value="" type="file">{if condition="$v['value']"}<img height="35" src="/uploads/{$v.value}">{else/}未上传{/if}
                                <?php endif;?>

                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>
                        <?php endif;?>
                    <?php endforeach;?>
                    </div>

                    <div id="profile11" class="tab-pane">
                        <?php foreach($confRes as $k=>$v):?>
                        <?php if($v['cf_type']==2):?>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right"><?php echo $v['cname']?></label>
                            <div class="col-sm-6">

                                <?php if($v['dt_type']==1):?><!-- 单行文本-->
                                <input class="form-control"  placeholder="" name="<?php echo $v['ename'];?>" required="" value="<?php echo $v['value'];?>" type="text">
                                <?php endif;?>

                                <?php if($v['dt_type']==2):
                                $arr=explode(',',$v['values']);
                                foreach($arr as $k1=>$v1):
                                ?><!-- 单选按钮-->
                                <div class="radio" style="float: left;padding-left: 10px">
                                    <label>
                                        <input type="radio" {if condition="$v1 eq $v['value']"} checked="checked" {/if} name="<?php echo $v['ename'];?>" value="<?php echo $v1;?>" class="colored-blue" >
                                        <span class="text"> <?php echo $v1;?></span>
                                    </label>
                                </div>
                                <?php endforeach; endif;?>

                                <?php if($v['dt_type']==3):
                                $arr=explode(',',$v['values']);
                                $valueArr=explode(',',$v['value']);
                                   foreach($arr as $k3=>$v3):
                                ?><!-- 复选框-->
                                <div class="checkbox"  style="float: left;padding-left: 10px">
                                    <label>
                                        <input name="<?php echo $v['ename'];?>[]" <?php if(in_array($v3,$valueArr)){echo 'checked="checked"';}?> type="checkbox" value="<?php echo $v3;?>" class="colored-blue" >
                                        <span class="text"><?php echo $v3;?></span>
                                    </label>
                                </div>
                                <?php endforeach; endif;?>
                                <?php if($v['dt_type']==4):?><!-- 下拉菜单-->
                                <select name="<?php echo $v['ename'];?>">
                                    <option value="">请选择</option>
                                    <?php $arr=explode(',',$v['values']);
                                    foreach($arr as $k4=>$v4):
                                    ?>
                                    <option {if condition="$v4 eq $v['value']"} selected="selected" {/if} value="<?php echo $v4;?>"><?php echo $v4;?></option>
                                    <?php endforeach;?>
                                </select>
                                <?php endif;?>

                                <?php if($v['dt_type']==5):?><!-- 文本域-->

                                <textarea name="<?php echo $v['ename'];?>" class="form-control"><?php echo $v['value'];?></textarea>
                                <?php endif;?>

                                <?php if($v['dt_type']==6):?><!-- 附件-->

                                <input name="<?php echo $v['ename'];?>" style="float: left;" value="" type="file">{if condition="$v['value']"}<img height="35" src="/uploads/{$v.value}">{else/}未上传{/if}
                                <?php endif;?>

                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>
                        <?php endif;?>
                        <?php endforeach;?>
                    </div>
                    <div id="profile12" class="tab-pane">
                        <?php foreach($confRes as $k=>$v):?>
                        <?php if($v['cf_type']==3):?>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right"><?php echo $v['cname']?></label>
                            <div class="col-sm-6">

                                <?php if($v['dt_type']==1):?><!-- 单行文本-->
                                <input class="form-control"  placeholder="" name="<?php echo $v['ename'];?>" required="" value="<?php echo $v['value'];?>" type="text">
                                <?php endif;?>

                                <?php if($v['dt_type']==2):
                                $arr=explode(',',$v['values']);
                                foreach($arr as $k1=>$v1):
                                ?><!-- 单选按钮-->
                                <div class="radio" style="float: left;padding-left: 10px">
                                    <label>
                                        <input type="radio" {if condition="$v1 eq $v['value']"} checked="checked" {/if} name="<?php echo $v['ename'];?>" value="<?php echo $v1;?>" class="colored-blue" >
                                        <span class="text"> <?php echo $v1;?></span>
                                    </label>
                                </div>
                                <?php endforeach; endif;?>

                                <?php if($v['dt_type']==3):
                                $arr=explode(',',$v['values']);
                                $valueArr=explode(',',$v['value']);
                                   foreach($arr as $k3=>$v3):
                                ?><!-- 复选框-->
                                <div class="checkbox"  style="float: left;padding-left: 10px">
                                    <label>
                                        <input name="<?php echo $v['ename'];?>[]" <?php if(in_array($v3,$valueArr)){echo 'checked="checked"';}?> type="checkbox" value="<?php echo $v3;?>" class="colored-blue" >
                                        <span class="text"><?php echo $v3;?></span>
                                    </label>
                                </div>
                                <?php endforeach; endif;?>
                                <?php if($v['dt_type']==4):?><!-- 下拉菜单-->
                                <select name="<?php echo $v['ename'];?>">
                                    <option value="">请选择</option>
                                    <?php $arr=explode(',',$v['values']);
                                    foreach($arr as $k4=>$v4):
                                    ?>
                                    <option {if condition="$v4 eq $v['value']"} selected="selected" {/if} value="<?php echo $v4;?>"><?php echo $v4;?></option>
                                    <?php endforeach;?>
                                </select>
                                <?php endif;?>

                                <?php if($v['dt_type']==5):?><!-- 文本域-->

                                <textarea name="<?php echo $v['ename'];?>" class="form-control"><?php echo $v['value'];?></textarea>
                                <?php endif;?>

                                <?php if($v['dt_type']==6):?><!-- 附件-->

                                <input name="<?php echo $v['ename'];?>" style="float: left;" value="" type="file">{if condition="$v['value']"}<img height="35" src="/uploads/{$v.value}">{else/}未上传{/if}
                                <?php endif;?>
                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>
                        <?php endif;?>
                        <?php endforeach;?>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button type="submit" class="btn btn-default">保存信息</button>
                        </div>
                    </div>

                </div>
            </div>
         </div>
        </form>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>

	    <!--Basic Scripts-->
    <script src="__STATIC__/admin/style/jquery_002.js"></script>
    <script src="__STATIC__/admin/style/bootstrap.js"></script>
    <script src="__STATIC__/admin/style/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="__STATIC__/admin/style/beyond.js"></script>
    


</body></html>